﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<ManagedServices.UI.Web.Models.ActivityLogModel[]>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	ViewActivityLog
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>View Activity Log</h2>
    <table>
            <thead>
            <tr>
                <td>
                    <div class="editor-label">Event Type</div>
                </td>
                <td>
                    <div class="editor-label">Message</div>
                </td>
                <td>
                    <div class="editor-label">Details</div>
                </td>
                <td>
                    <div class="editor-label">Happened At</div>
                </td>
            </tr>
            </thead>
            <tbody>
            <% foreach (var item in this.Model) {%>
            <tr>
                <td>
                    <div class="editor-label"><%=item.EventType %> </div>
                </td>
                
                <td>
                    <div class="editor-label"><%=item.EventMessage %> </div>
                </td>
                <td>
                    <div class="editor-label"><%=item.EventDetails %> </div>
                </td>
                
                <td>
                    <div class="editor-label"><%=item.CreatedOn.ToString() %> </div>
                </td>          
            </tr>
            </tbody>
            <% }%> 
        </table>
</asp:Content>
